@unchainedshop/admin-ui 5.0.0-alpha.10 → 5.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HTPSKUXQ.js → chunk-BMDNY67T.js} +121 -50
- package/dist/{chunk-AOR2B5N5.js → chunk-BOMSMJF2.js} +4 -1
- package/dist/{chunk-E7BVYJ3R.js → chunk-E77YIMGR.js} +1 -1
- package/dist/{chunk-H6G4UTZ5.js → chunk-HJKRGBDG.js} +4 -10
- package/dist/{chunk-DTJ2DTKS.js → chunk-ICJH36K4.js} +15 -3
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/{chunk-AE5LOZGH.js → chunk-PJLYVMUM.js} +15 -57
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
- package/dist/components/ui/Badge.d.ts.map +1 -1
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/ui/Pagination.d.ts.map +1 -1
- package/dist/components/ui/form/Combobox.d.ts.map +1 -1
- package/dist/components/ui/form/TextField.d.ts.map +1 -1
- package/dist/form.js +22 -11
- package/dist/gql/operation-types.d.ts +195 -19
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +62 -7
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +3 -3
- package/dist/modules/accounts.js +182 -2
- package/dist/modules/assortment.js +81 -2
- package/dist/modules/common/components/AppContext.d.ts.map +1 -1
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
- package/dist/modules/common/data/miscellaneous.d.ts +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -1
- package/dist/modules/enrollment.js +65 -8
- package/dist/modules/filter.js +51 -2
- package/dist/modules/order.js +1 -1
- package/dist/modules/product-review.js +2 -2
- package/dist/modules/product.js +259 -11
- package/dist/modules/quotation.js +7 -0
- package/dist/modules/token.js +1 -1
- package/dist/modules/work.js +17 -101
- package/dist/providers.js +1 -1
- package/dist/ui.js +91 -60
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +262 -0
- package/out/_next/static/chunks/01xy3u9ybz9ts.js +5 -0
- package/out/_next/static/chunks/02ir8k2vqhw7u.js +4 -0
- package/out/_next/static/chunks/03mdkmx9pb3yx.js +28 -0
- package/out/_next/static/chunks/03spbldywp99b.js +31 -0
- package/out/_next/static/chunks/0531sa8v36e39.js +1 -0
- package/out/_next/static/chunks/065ltxdt7s8b2.js +134 -0
- package/out/_next/static/chunks/06b1jza2fvc6f.js +4 -0
- package/out/_next/static/chunks/0701uizxsgs75.js +4 -0
- package/out/_next/static/chunks/09olk50zbo5r6.js +5 -0
- package/out/_next/static/chunks/09pabifvs84zb.js +12 -0
- package/out/_next/static/chunks/0_pn7w49dpkak.js +5 -0
- package/out/_next/static/chunks/0a_gulnq-c7to.js +709 -0
- package/out/_next/static/chunks/0agx-csdwbk-x.js +5 -0
- package/out/_next/static/chunks/0clmvy-auef0p.js +14 -0
- package/out/_next/static/chunks/0czktxcs2aa12.js +1 -0
- package/out/_next/static/chunks/0d_qylr054ab-.js +5 -0
- package/out/_next/static/chunks/0e2znhpcecrqs.js +175 -0
- package/out/_next/static/chunks/0ef4vp3ehm369.js +4 -0
- package/out/_next/static/chunks/0fggi8jpi5gjk.js +165 -0
- package/out/_next/static/chunks/0gyabz3vqllr6.js +83 -0
- package/out/_next/static/chunks/0j05dboa5_xkw.js +5 -0
- package/out/_next/static/chunks/0kr4ift9_1a3s.js +1 -0
- package/out/_next/static/chunks/0l8tmlevl_6p0.js +1 -0
- package/out/_next/static/chunks/0m73vd78oga92.js +342 -0
- package/out/_next/static/chunks/0o91usftba97q.js +54 -0
- package/out/_next/static/chunks/0oi1kpp0levnm.js +1 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0p86ng98eiz5q.js +11 -0
- package/out/_next/static/chunks/0pw1zl8_l93xl.js +5 -0
- package/out/_next/static/chunks/0py8-umjmwiwi.js +156 -0
- package/out/_next/static/chunks/0q0m2pv-3b2e2.js +4 -0
- package/out/_next/static/chunks/0r57e83u39trg.js +5 -0
- package/out/_next/static/chunks/0r9a_mcjh1k24.js +6 -0
- package/out/_next/static/chunks/0rgtc82y8z7_x.js +5 -0
- package/out/_next/static/chunks/0rxhx_x-7dojh.js +182 -0
- package/out/_next/static/chunks/0s6u_6w75ggbw.js +297 -0
- package/out/_next/static/chunks/0teb3b5h78855.js +44 -0
- package/out/_next/static/chunks/0thsuuvsozjop.js +54 -0
- package/out/_next/static/chunks/0v6x3uondh5hw.js +5 -0
- package/out/_next/static/chunks/0v_uz3j8jolmq.js +4 -0
- package/out/_next/static/chunks/0vwmp6qrw7odm.js +7 -0
- package/out/_next/static/chunks/0w6t6v_jzrudq.js +4 -0
- package/out/_next/static/chunks/0w7gz501ry22r.js +4 -0
- package/out/_next/static/chunks/0xgn-89s97a5w.js +1 -0
- package/out/_next/static/chunks/0xqtemh7t38y9.js +119 -0
- package/out/_next/static/chunks/1-1rj15j67dqt.js +1 -0
- package/out/_next/static/chunks/10drou7w-k58p.js +4 -0
- package/out/_next/static/chunks/11w7hldkge7sg.js +8 -0
- package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
- package/out/_next/static/chunks/130c8cta7pec6.js +1 -0
- package/out/_next/static/chunks/13qi39a_b6gkv.js +1 -0
- package/out/_next/static/chunks/15142badc5ufq.js +4 -0
- package/out/_next/static/chunks/155boltbcvwo-.js +63 -0
- package/out/_next/static/chunks/15_nwd8p454gd.js +1 -0
- package/out/_next/static/chunks/15s4qkdyz56pg.js +115 -0
- package/out/_next/static/chunks/15vdx0kewzv-6.js +33 -0
- package/out/_next/static/chunks/16shuavdpgni8.js +327 -0
- package/out/_next/static/chunks/170j06y4-47o4.js +5 -0
- package/out/_next/static/chunks/18a5kibvycb6u.js +1 -0
- package/out/_next/static/chunks/1_bckhq06wfmb.js +4 -0
- package/out/_next/static/chunks/1_ymf_rfke1aw.js +6 -0
- package/out/_next/static/chunks/1a1m389awxw4k.js +1 -0
- package/out/_next/static/chunks/1albq_5cppsa1.js +5 -0
- package/out/_next/static/chunks/1bhibqf8k2-z1.js +117 -0
- package/out/_next/static/chunks/1bxesp6kakz8_.js +353 -0
- package/out/_next/static/chunks/1d80ahah359g5.js +174 -0
- package/out/_next/static/chunks/1dbjry-rs_5we.js +1 -0
- package/out/_next/static/chunks/1dlr1eig6zpl1.js +12 -0
- package/out/_next/static/chunks/1gq8ickcg_vmv.js +147 -0
- package/out/_next/static/chunks/1gyrsx1nip-lm.js +2 -0
- package/out/_next/static/chunks/1hma23kynopdj.js +3 -0
- package/out/_next/static/chunks/1i996uxxmc736.js +234 -0
- package/out/_next/static/chunks/1iamjw8qh1m4o.js +4 -0
- package/out/_next/static/chunks/1ivhp-mi-5l--.js +57 -0
- package/out/_next/static/chunks/1jmdpa0tc5puj.js +7 -0
- package/out/_next/static/chunks/1ktkks-wpk8q-.js +1 -0
- package/out/_next/static/chunks/1kz62r46jwi0y.js +5 -0
- package/out/_next/static/chunks/1lex3myb5hmsw.js +1 -0
- package/out/_next/static/chunks/1lha1nklxo2g7.js +1 -0
- package/out/_next/static/chunks/1mwmcucidjio0.js +8 -0
- package/out/_next/static/chunks/1mzejejof4s6g.js +147 -0
- package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
- package/out/_next/static/chunks/1p937fyqa7ssz.js +1 -0
- package/out/_next/static/chunks/1po7d3udj6iv4.js +5 -0
- package/out/_next/static/chunks/1qxxbcidu-hmv.js +1 -0
- package/out/_next/static/chunks/1re4i2t_po4sr.js +95 -0
- package/out/_next/static/chunks/1s4oi1bw8zl5d.js +31 -0
- package/out/_next/static/chunks/1sb04cqudnfpj.js +4 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1so6ouxrq_ffa.js +39 -0
- package/out/_next/static/chunks/1ulje1tawz8fl.js +1 -0
- package/out/_next/static/chunks/1uom050rz5iol.js +272 -0
- package/out/_next/static/chunks/1uymuiqrms2h8.js +103 -0
- package/out/_next/static/chunks/1wijj_fal57co.js +2 -0
- package/out/_next/static/chunks/1wpen9t3_zbte.js +1 -0
- package/out/_next/static/chunks/1wpv1sl7vwg04.js +99 -0
- package/out/_next/static/chunks/1y3poj860g968.js +24 -0
- package/out/_next/static/chunks/1yk0pxcl4urkd.js +4 -0
- package/out/_next/static/chunks/1z1mbux-7g74d.js +1 -0
- package/out/_next/static/chunks/1z2rl3h7scna4.js +7 -0
- package/out/_next/static/chunks/1zyhq82pkterc.js +61 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-zr9-ri30va5.css +1 -0
- package/out/_next/static/chunks/20j8cdot33hql.js +13 -0
- package/out/_next/static/chunks/21fo9zerxyx-l.js +59 -0
- package/out/_next/static/chunks/22sxsq82r3cwy.js +41 -0
- package/out/_next/static/chunks/23nwkbry8kz0-.js +1 -0
- package/out/_next/static/chunks/259ckrmoldaqg.js +5 -0
- package/out/_next/static/chunks/25y2dqqrhstuq.js +5 -0
- package/out/_next/static/chunks/28myh-gi8t3t7.js +7 -0
- package/out/_next/static/chunks/28oppyg7ev102.js +1 -0
- package/out/_next/static/chunks/29y82c6-u55hj.js +5 -0
- package/out/_next/static/chunks/2ahlen2u4lbnm.js +16 -0
- package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
- package/out/_next/static/chunks/2c3ehieqiwiw8.js +119 -0
- package/out/_next/static/chunks/2c5gq6izeq6nx.js +81 -0
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
- package/out/_next/static/chunks/2d9lzme_uzwvq.js +1 -0
- package/out/_next/static/chunks/2dqoft2pp4355.js +1 -0
- package/out/_next/static/chunks/2gso7_8v7owco.js +1 -0
- package/out/_next/static/chunks/2hc4nowrexhn3.js +100 -0
- package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
- package/out/_next/static/chunks/2hw2_8kkf_2fg.js +1 -0
- package/out/_next/static/chunks/2kd4p_esjbozz.js +21 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2lwhn1ypqwukz.js +11 -0
- package/out/_next/static/chunks/2oz432iieo_c6.js +43 -0
- package/out/_next/static/chunks/2qjnhmz4c5fq1.js +23 -0
- package/out/_next/static/chunks/2rdjgc7_za785.js +9 -0
- package/out/_next/static/chunks/2ru66cyp0hbxn.js +103 -0
- package/out/_next/static/chunks/2ung-az_h871_.js +4 -0
- package/out/_next/static/chunks/2v4rvvdyh028e.js +1 -0
- package/out/_next/static/chunks/2vsl3-revotpl.js +43 -0
- package/out/_next/static/chunks/2wbc_9uwtsjbp.js +15 -0
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
- package/out/_next/static/chunks/2y6i_xssusr93.js +1 -0
- package/out/_next/static/chunks/2y_t26eglpeka.js +4 -0
- package/out/_next/static/chunks/2yw5sk06gdixu.js +1 -0
- package/out/_next/static/chunks/3-hgyqm9mhcm9.js +33 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/364y5vueeinvz.js +276 -0
- package/out/_next/static/chunks/366b9y413lk4d.js +33 -0
- package/out/_next/static/chunks/36vauyb71ot_b.js +61 -0
- package/out/_next/static/chunks/394m309ssmlo3.js +5 -0
- package/out/_next/static/chunks/39pveojee3ma1.js +33 -0
- package/out/_next/static/chunks/3_--novhq2u1q.js +807 -0
- package/out/_next/static/chunks/3apnk6kuvwze8.js +5 -0
- package/out/_next/static/chunks/3b0868kyqqkn3.js +5 -0
- package/out/_next/static/chunks/3btkj1_irjkq7.js +161 -0
- package/out/_next/static/chunks/3dcwbsiechj8e.js +7 -0
- package/out/_next/static/chunks/3dyd0ilb-ee5w.js +8 -0
- package/out/_next/static/chunks/3eftzknnu45-s.js +1 -0
- package/out/_next/static/chunks/3ejsx4af27cct.js +7 -0
- package/out/_next/static/chunks/3es4yddhl8uwc.js +7 -0
- package/out/_next/static/chunks/3fpgg_wy6j2ph.js +2 -0
- package/out/_next/static/chunks/3inp15oicq85k.js +1 -0
- package/out/_next/static/chunks/3j25u7rzawm9f.js +367 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3kd-t_qz3nxh7.js +30 -0
- package/out/_next/static/chunks/3kl8vv7w9jkjr.js +23 -0
- package/out/_next/static/chunks/3kmfx3f7oyfdm.js +5 -0
- package/out/_next/static/chunks/3koj4-48a7p_9.js +4 -0
- package/out/_next/static/chunks/3l7glrtu8ueuo.js +4 -0
- package/out/_next/static/chunks/3lgq9oa_2erwo.js +5 -0
- package/out/_next/static/chunks/3m_9ozv0orvze.js +187 -0
- package/out/_next/static/chunks/3muxcxam24i5z.js +1 -0
- package/out/_next/static/chunks/3nimt7ngr5zv6.js +46 -0
- package/out/_next/static/chunks/3pwezwpggrz59.js +74 -0
- package/out/_next/static/chunks/3r02t7a7jknrv.js +7 -0
- package/out/_next/static/chunks/3s40iuaou1rt4.js +1 -0
- package/out/_next/static/chunks/3selzn479n73i.js +16 -0
- package/out/_next/static/chunks/3srflqnqdfd60.js +5 -0
- package/out/_next/static/chunks/3t57k35xu2eo8.js +5 -0
- package/out/_next/static/chunks/3tu90a7do336z.js +12 -0
- package/out/_next/static/chunks/3ukgj2jzxf10n.js +5 -0
- package/out/_next/static/chunks/3vosu-lpiis6v.js +5 -0
- package/out/_next/static/chunks/3xaz8fvw2x6b3.js +5 -0
- package/out/_next/static/chunks/3xgjhwzul66dp.js +4 -0
- package/out/_next/static/chunks/3zze6y1x00k__.js +165 -0
- package/out/_next/static/chunks/40730dyt912zu.js +5 -0
- package/out/_next/static/chunks/40f26tfp8txip.js +5 -0
- package/out/_next/static/chunks/40kc42ezz2dri.js +1 -0
- package/out/_next/static/chunks/41f60q88qcigi.js +39 -0
- package/out/_next/static/chunks/41l5iphw-rna3.js +44 -0
- package/out/_next/static/chunks/423kk9x5t9_b8.js +5 -0
- package/out/_next/static/chunks/42k5e3tr3uyzs.js +54 -0
- package/out/_next/static/chunks/43uqmej6-s4am.js +7 -0
- package/out/_next/static/chunks/4481d7yj7bm2q.js +5 -0
- package/out/_next/static/chunks/448is1kpt9eaa.js +39 -0
- package/out/_next/static/chunks/44fkzg2e80pqt.js +8 -0
- package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/ext/[[...slug]]/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +1 -1
- package/src/modules/accounts/index.ts +6 -0
- package/src/modules/assortment/index.ts +2 -0
- package/src/modules/enrollment/index.ts +2 -0
- package/src/modules/filter/index.ts +2 -0
- package/src/modules/product/index.ts +4 -0
- package/src/modules/work/index.ts +1 -0
- package/src/sdk/README.md +11 -2
- package/src/sdk/plugin-navigation.test.mjs +59 -0
- package/out/_next/static/chunks/0-2b37ubdpy0o.js +0 -7
- package/out/_next/static/chunks/012cafv-4m7rj.js +0 -807
- package/out/_next/static/chunks/02dnhll1bce87.js +0 -46
- package/out/_next/static/chunks/02ptvddfjlsxb.js +0 -1
- package/out/_next/static/chunks/03ebenjfvoj8n.js +0 -1
- package/out/_next/static/chunks/03r347235l6c4.js +0 -7
- package/out/_next/static/chunks/05au-xyt__0f2.js +0 -3
- package/out/_next/static/chunks/05nn5xr3ufcsh.js +0 -1
- package/out/_next/static/chunks/05o_q7jg8wucs.js +0 -44
- package/out/_next/static/chunks/05scroolqe8fu.js +0 -234
- package/out/_next/static/chunks/072qxdqjtqvn9.js +0 -11
- package/out/_next/static/chunks/0752goe9_9g2s.js +0 -110
- package/out/_next/static/chunks/07e-sk6v9u-qh.js +0 -807
- package/out/_next/static/chunks/07evy5u8ldd1y.js +0 -50
- package/out/_next/static/chunks/083ylavob4a8d.js +0 -3
- package/out/_next/static/chunks/08jrw03_vxllg.js +0 -54
- package/out/_next/static/chunks/08pag0k09j2b3.js +0 -807
- package/out/_next/static/chunks/09n6h-_l73rez.js +0 -13
- package/out/_next/static/chunks/0_b5faks_mrvi.js +0 -14
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +0 -60
- package/out/_next/static/chunks/0aqxsjssb0dh9.js +0 -21
- package/out/_next/static/chunks/0aw4jxe6zcc0c.js +0 -32
- package/out/_next/static/chunks/0b0hrx3sbbs70.js +0 -807
- package/out/_next/static/chunks/0bg4_y1qh5y5h.js +0 -47
- package/out/_next/static/chunks/0bgz44wi1lidl.js +0 -13
- package/out/_next/static/chunks/0dcpvidzyamvk.js +0 -100
- package/out/_next/static/chunks/0dnh0kr83_tj0.js +0 -1
- package/out/_next/static/chunks/0dxp17sbyy_dr.js +0 -22
- package/out/_next/static/chunks/0dxu94yin5gdn.js +0 -35
- package/out/_next/static/chunks/0e2c-jlh2q_eq.js +0 -74
- package/out/_next/static/chunks/0el7gr-83bm5j.js +0 -3
- package/out/_next/static/chunks/0f_ofo__wyqsp.js +0 -22
- package/out/_next/static/chunks/0gx9t6j5kx_ho.js +0 -9
- package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +0 -18
- package/out/_next/static/chunks/0iy11ws57hzzr.js +0 -99
- package/out/_next/static/chunks/0j8_uikfyrn1f.js +0 -1
- package/out/_next/static/chunks/0jeddko6bac8h.js +0 -1
- package/out/_next/static/chunks/0jzx7vxh13cpi.js +0 -15
- package/out/_next/static/chunks/0kody3217__os.js +0 -16
- package/out/_next/static/chunks/0kwo-m1-mo-s-.js +0 -31
- package/out/_next/static/chunks/0lp_pnq1t06sl.js +0 -104
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
- package/out/_next/static/chunks/0mez27zlo26ni.js +0 -103
- package/out/_next/static/chunks/0nj8vn3509oe-.js +0 -9
- package/out/_next/static/chunks/0np9pcbt6dmxe.js +0 -25
- package/out/_next/static/chunks/0o7k5vanq57ch.js +0 -807
- package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
- package/out/_next/static/chunks/0rqjr_lmrk4pz.js +0 -5
- package/out/_next/static/chunks/0swe0fkt4vyzn.js +0 -136
- package/out/_next/static/chunks/0u4st428hgv1v.js +0 -27
- package/out/_next/static/chunks/0u7--d8_-qyne.js +0 -83
- package/out/_next/static/chunks/0ubzi2s1spm4e.js +0 -342
- package/out/_next/static/chunks/0uecw_5mn0zvr.js +0 -110
- package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
- package/out/_next/static/chunks/0uxwblyj0htyb.js +0 -1
- package/out/_next/static/chunks/0uyhr7vs9ltp0.js +0 -141
- package/out/_next/static/chunks/0vr19nswhvt2-.js +0 -14
- package/out/_next/static/chunks/0vyvc19p87f_r.js +0 -234
- package/out/_next/static/chunks/0wznlnzc2xsbz.js +0 -16
- package/out/_next/static/chunks/0ycu-q8fcc8ta.js +0 -1
- package/out/_next/static/chunks/0ytserk6fuf71.js +0 -175
- package/out/_next/static/chunks/0zoum0jzrtu0s.js +0 -145
- package/out/_next/static/chunks/1-6s62fsl_z_7.js +0 -126
- package/out/_next/static/chunks/10b6et0qn-pa0.js +0 -59
- package/out/_next/static/chunks/13m7st62a61df.js +0 -25
- package/out/_next/static/chunks/13u_a5l2xngm4.js +0 -1
- package/out/_next/static/chunks/15vz50rks0o2-.js +0 -238
- package/out/_next/static/chunks/1647yxi4ymq0z.js +0 -14
- package/out/_next/static/chunks/16hd7xvkocqxs.js +0 -807
- package/out/_next/static/chunks/16t18hhd4ax36.js +0 -2
- package/out/_next/static/chunks/17wle25pg9jkp.js +0 -11
- package/out/_next/static/chunks/18juy_eauk94g.js +0 -58
- package/out/_next/static/chunks/19eflki8bmivb.js +0 -81
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +0 -23
- package/out/_next/static/chunks/19izcjxrrapb3.js +0 -9
- package/out/_next/static/chunks/1_jbj-c1d2606.js +0 -21
- package/out/_next/static/chunks/1_pwqdjxb6oou.js +0 -226
- package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
- package/out/_next/static/chunks/1bftmuhck_-7b.js +0 -1
- package/out/_next/static/chunks/1bww_2og01jxh.js +0 -807
- package/out/_next/static/chunks/1c0cemuv_tf6i.js +0 -16
- package/out/_next/static/chunks/1c4a2qxtb3r4_.js +0 -16
- package/out/_next/static/chunks/1cjd95y23a9qx.js +0 -1
- package/out/_next/static/chunks/1cy-2yb5j5_9b.js +0 -157
- package/out/_next/static/chunks/1dkv555kaccbl.js +0 -13
- package/out/_next/static/chunks/1dt9_bzfioi8a.js +0 -24
- package/out/_next/static/chunks/1fd7ewfb7bi_g.js +0 -234
- package/out/_next/static/chunks/1gncrqljnmqjn.js +0 -43
- package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
- package/out/_next/static/chunks/1iewktf-9h_n8.js +0 -15
- package/out/_next/static/chunks/1l7p7exnzd0c2.js +0 -12
- package/out/_next/static/chunks/1nqu3ymv6lgev.js +0 -3
- package/out/_next/static/chunks/1o_8g-kpuqi9h.js +0 -1
- package/out/_next/static/chunks/1oent0-9-0rgb.js +0 -20
- package/out/_next/static/chunks/1og09fg689_nc.js +0 -180
- package/out/_next/static/chunks/1pj279k5ntty3.js +0 -13
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +0 -54
- package/out/_next/static/chunks/1qvs4gd4rbhb2.js +0 -15
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +0 -1
- package/out/_next/static/chunks/1sdqr2_r6o46f.js +0 -16
- package/out/_next/static/chunks/1vti949e9wuhz.js +0 -15
- package/out/_next/static/chunks/1x-yucftdml28.js +0 -1
- package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
- package/out/_next/static/chunks/1ylgjha1c0ua_.js +0 -124
- package/out/_next/static/chunks/1yp98n-n4gxwy.js +0 -15
- package/out/_next/static/chunks/1zcm_9oew7412.js +0 -14
- package/out/_next/static/chunks/2-e0d1qpp7rk9.js +0 -14
- package/out/_next/static/chunks/20ubrczdsehfm.js +0 -879
- package/out/_next/static/chunks/23m--gc-gjenm.js +0 -3
- package/out/_next/static/chunks/24-pobk4qjjvp.js +0 -3
- package/out/_next/static/chunks/24jptulqn322i.js +0 -15
- package/out/_next/static/chunks/24jyi7e2pq4gy.js +0 -15
- package/out/_next/static/chunks/252jebodi67kg.js +0 -1
- package/out/_next/static/chunks/26eux546aoag5.js +0 -58
- package/out/_next/static/chunks/270ua9t85a7ev.js +0 -5
- package/out/_next/static/chunks/28r_j2kquxrjn.js +0 -807
- package/out/_next/static/chunks/2_ccruvok3u8j.js +0 -16
- package/out/_next/static/chunks/2_ojfjgg8do9t.js +0 -1
- package/out/_next/static/chunks/2aj5aq_c0b4r_.js +0 -13
- package/out/_next/static/chunks/2ba3n9zx9e9q9.js +0 -807
- package/out/_next/static/chunks/2d-hxb31pgpn7.js +0 -13
- package/out/_next/static/chunks/2df2cqwidgpan.js +0 -15
- package/out/_next/static/chunks/2djnsowjy3p8y.js +0 -1
- package/out/_next/static/chunks/2dyj8q92_k5el.js +0 -708
- package/out/_next/static/chunks/2e0k9dt1emjfm.js +0 -1
- package/out/_next/static/chunks/2e3gba1n-yyuj.js +0 -15
- package/out/_next/static/chunks/2e_p1vqr0g_-_.js +0 -7
- package/out/_next/static/chunks/2e_te6sbs_5uw.js +0 -1
- package/out/_next/static/chunks/2f16josk9b_cl.js +0 -8
- package/out/_next/static/chunks/2fo2ki1egxbah.js +0 -39
- package/out/_next/static/chunks/2g8gzs8wpsofk.js +0 -2
- package/out/_next/static/chunks/2gh355-kh19zx.js +0 -13
- package/out/_next/static/chunks/2gr4t5xe0atdr.js +0 -15
- package/out/_next/static/chunks/2ib6fee-nqe-z.js +0 -23
- package/out/_next/static/chunks/2kjux30i3gg-c.js +0 -5
- package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
- package/out/_next/static/chunks/2ll_mqee86g8c.js +0 -1
- package/out/_next/static/chunks/2lx_iig9xewfj.js +0 -52
- package/out/_next/static/chunks/2lylr4-3tu1_t.js +0 -15
- package/out/_next/static/chunks/2n1v8ph2nt43w.js +0 -17
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +0 -165
- package/out/_next/static/chunks/2oadogfqpak51.js +0 -1
- package/out/_next/static/chunks/2oogwntgnu9rf.js +0 -17
- package/out/_next/static/chunks/2p4e3kh8sa8iq.js +0 -13
- package/out/_next/static/chunks/2q-mpau-4gsvd.js +0 -1
- package/out/_next/static/chunks/2rddaar-ns45d.js +0 -116
- package/out/_next/static/chunks/2s3qhuh87mu_w.js +0 -126
- package/out/_next/static/chunks/2s6u8274_jzk2.js +0 -105
- package/out/_next/static/chunks/2skfzjx2g9hkk.js +0 -134
- package/out/_next/static/chunks/2u6jwsqz0uhes.js +0 -24
- package/out/_next/static/chunks/2v4k4vpb2id7m.js +0 -44
- package/out/_next/static/chunks/2xctb084h1lyg.js +0 -329
- package/out/_next/static/chunks/2xgpwzpd6-tdb.js +0 -234
- package/out/_next/static/chunks/3-soz24u9483h.js +0 -15
- package/out/_next/static/chunks/30_ns6urg1dkn.js +0 -41
- package/out/_next/static/chunks/30nxkqu5mcga3.js +0 -1
- package/out/_next/static/chunks/313i1x81q2xj1.js +0 -1
- package/out/_next/static/chunks/31qwglme02a_r.js +0 -807
- package/out/_next/static/chunks/31sk60zzj3bc5.js +0 -17
- package/out/_next/static/chunks/325a7n__tfxy_.js +0 -61
- package/out/_next/static/chunks/33emlry70k-lv.js +0 -2
- package/out/_next/static/chunks/33v8la4hkia7j.js +0 -1
- package/out/_next/static/chunks/34ar-34flu6bu.js +0 -43
- package/out/_next/static/chunks/34z48lfdm9u0l.js +0 -9
- package/out/_next/static/chunks/351jscvbk_wb9.js +0 -13
- package/out/_next/static/chunks/357odtev0t245.js +0 -59
- package/out/_next/static/chunks/360g4b1clnt45.js +0 -142
- package/out/_next/static/chunks/360uyru28azf6.js +0 -20
- package/out/_next/static/chunks/366apf6d0xh2u.js +0 -30
- package/out/_next/static/chunks/36_zbuqpk5cpj.js +0 -14
- package/out/_next/static/chunks/36aqs7u7s-lb1.js +0 -119
- package/out/_next/static/chunks/36beon3q8orx2.js +0 -1
- package/out/_next/static/chunks/37703j9_zf5_h.js +0 -13
- package/out/_next/static/chunks/37rwzuocwsv_k.js +0 -16
- package/out/_next/static/chunks/37w6b3h04uc4c.js +0 -19
- package/out/_next/static/chunks/38ffn8gazqz8_.js +0 -3
- package/out/_next/static/chunks/38xse6_r51yqp.js +0 -234
- package/out/_next/static/chunks/39s8xbnm9f08v.js +0 -14
- package/out/_next/static/chunks/39x-p8r_sl0ng.js +0 -15
- package/out/_next/static/chunks/39zisxvmik0t_.js +0 -34
- package/out/_next/static/chunks/3_97tge0xvvon.js +0 -11
- package/out/_next/static/chunks/3aw-ri7876ngd.js +0 -39
- package/out/_next/static/chunks/3bv7gi3o6-41h.js +0 -11
- package/out/_next/static/chunks/3cdfuacs4_0d-.js +0 -1
- package/out/_next/static/chunks/3cxpx38ycu7u2.js +0 -9
- package/out/_next/static/chunks/3d1ofcqmlbg-5.js +0 -52
- package/out/_next/static/chunks/3e3i3qqkv_my7.js +0 -15
- package/out/_next/static/chunks/3ex71q3pp_ekc.js +0 -247
- package/out/_next/static/chunks/3g1lpkudwo8kg.js +0 -1
- package/out/_next/static/chunks/3h68t22714to5.js +0 -3
- package/out/_next/static/chunks/3jpzhwqgdnobq.js +0 -103
- package/out/_next/static/chunks/3jxuqt_2-j_uc.js +0 -18
- package/out/_next/static/chunks/3kqqv33l7ssn0.js +0 -16
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +0 -1
- package/out/_next/static/chunks/3mancxzz8c7hl.js +0 -51
- package/out/_next/static/chunks/3mq2s9rfy78je.js +0 -27
- package/out/_next/static/chunks/3om1fkw-lrmng.js +0 -1
- package/out/_next/static/chunks/3oynij37wfjb2.js +0 -119
- package/out/_next/static/chunks/3pbyo5kkko3wh.js +0 -1
- package/out/_next/static/chunks/3pjja1obml896.js +0 -15
- package/out/_next/static/chunks/3qaiz-jwi7q2x.js +0 -1
- package/out/_next/static/chunks/3rh3nigvg06yu.js +0 -337
- package/out/_next/static/chunks/3rppjab6j3_k9.js +0 -1
- package/out/_next/static/chunks/3t_3vlnk1ntkb.js +0 -95
- package/out/_next/static/chunks/3tpo2ho54vtth.js +0 -807
- package/out/_next/static/chunks/3tqspv0ggt8j0.js +0 -17
- package/out/_next/static/chunks/3um54w4ca27n_.js +0 -17
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +0 -61
- package/out/_next/static/chunks/3vjgbl76cgrmt.js +0 -1
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +0 -4
- package/out/_next/static/chunks/3w2e5xa061qou.js +0 -9
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +0 -23
- package/out/_next/static/chunks/3x4xfy_av3o0d.js +0 -1
- package/out/_next/static/chunks/3x9k13s5fam4j.js +0 -22
- package/out/_next/static/chunks/3xmtbqm0gddn8.js +0 -3
- package/out/_next/static/chunks/3z5uyt9mc9_fd.js +0 -2
- package/out/_next/static/chunks/3zlwp96x3hoy9.js +0 -16
- package/out/_next/static/chunks/3zr_sumh1g7il.js +0 -22
- package/out/_next/static/chunks/40jl8yfmy6tp6.js +0 -234
- package/out/_next/static/chunks/40xhwnc_48o73.js +0 -297
- package/out/_next/static/chunks/41-iysd7qkyg1.js +0 -16
- package/out/_next/static/chunks/4105a9rejv_p4.js +0 -1
- package/out/_next/static/chunks/41e2wlkp9_pvk.js +0 -28
- package/out/_next/static/chunks/41g7mv3yuhz6k.js +0 -68
- package/out/_next/static/chunks/43jyzccx6x0lw.js +0 -1
- package/out/_next/static/chunks/43vuxh3wdo567.js +0 -10
- package/out/_next/static/chunks/44daaafswok67.css +0 -1
- package/out/_next/static/chunks/452fv7r-tie6t.js +0 -1
- package/out/_next/static/chunks/457j51b69odrw.js +0 -1
- package/out/_next/static/chunks/turbopack-02vysfmmbped5.js +0 -1
- package/out/_next/static/chunks/turbopack-03fj2scz_09ul.js +0 -1
- package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +0 -1
- package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +0 -1
- package/out/_next/static/chunks/turbopack-0b8-ww_z1vgvn.js +0 -1
- package/out/_next/static/chunks/turbopack-0beql_u-wc_3e.js +0 -1
- package/out/_next/static/chunks/turbopack-0dxdn-gyy3_qj.js +0 -1
- package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +0 -1
- package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +0 -1
- package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +0 -1
- package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +0 -1
- package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +0 -1
- package/out/_next/static/chunks/turbopack-0te09_mp07k1x.js +0 -1
- package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +0 -1
- package/out/_next/static/chunks/turbopack-10-8q-q2zomxa.js +0 -1
- package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +0 -1
- package/out/_next/static/chunks/turbopack-18tezl3vagvil.js +0 -1
- package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +0 -1
- package/out/_next/static/chunks/turbopack-1_k-7s9lmntml.js +0 -1
- package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +0 -1
- package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +0 -1
- package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +0 -1
- package/out/_next/static/chunks/turbopack-1jtk1c9w2axlk.js +0 -1
- package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +0 -1
- package/out/_next/static/chunks/turbopack-1lkz81ntcp1zv.js +0 -1
- package/out/_next/static/chunks/turbopack-1pkw_r5dvv20d.js +0 -1
- package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +0 -1
- package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +0 -1
- package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +0 -1
- package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +0 -1
- package/out/_next/static/chunks/turbopack-1wv610ktbtzka.js +0 -1
- package/out/_next/static/chunks/turbopack-1wz4te1fj20zp.js +0 -1
- package/out/_next/static/chunks/turbopack-1zi2ss8eiiyfx.js +0 -1
- package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +0 -1
- package/out/_next/static/chunks/turbopack-21zngkzhonfcm.js +0 -1
- package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +0 -1
- package/out/_next/static/chunks/turbopack-26wtylwa4_s95.js +0 -1
- package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +0 -1
- package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +0 -1
- package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +0 -1
- package/out/_next/static/chunks/turbopack-28m_9eg3draop.js +0 -1
- package/out/_next/static/chunks/turbopack-29h9fgcal-fng.js +0 -1
- package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +0 -1
- package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +0 -1
- package/out/_next/static/chunks/turbopack-2bslf96g-y1vv.js +0 -1
- package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +0 -1
- package/out/_next/static/chunks/turbopack-2ez-mfb63qve0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g7u83j1wlswz.js +0 -1
- package/out/_next/static/chunks/turbopack-2m4gns1_64-7_.js +0 -1
- package/out/_next/static/chunks/turbopack-2n4ba44aafc4x.js +0 -1
- package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +0 -1
- package/out/_next/static/chunks/turbopack-2tf6rdek5zvm6.js +0 -1
- package/out/_next/static/chunks/turbopack-2vb0p2htqo4nd.js +0 -1
- package/out/_next/static/chunks/turbopack-30-bi-9_7jd01.js +0 -1
- package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +0 -1
- package/out/_next/static/chunks/turbopack-3a3skasosq9-4.js +0 -1
- package/out/_next/static/chunks/turbopack-3d2rk8-5wcgrs.js +0 -1
- package/out/_next/static/chunks/turbopack-3i91g2le3tkne.js +0 -1
- package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +0 -1
- package/out/_next/static/chunks/turbopack-3m47jybfw85nc.js +0 -1
- package/out/_next/static/chunks/turbopack-3yfksvslbm14s.js +0 -1
- package/out/_next/static/chunks/turbopack-414roft8p92hp.js +0 -1
- package/out/_next/static/chunks/turbopack-424slv1lqxh_5.js +0 -1
- package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +0 -1
- package/out/_next/static/z5KrmhOz2mLscINN5EbUf/_buildManifest.js +0 -262
- /package/dist/{chunk-JED6SHHG.js → chunk-PUI5BIKO.js} +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → BPoacQET3TJr2q9E370Ez}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → BPoacQET3TJr2q9E370Ez}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldWrapper_default, clsx_default, Tab_default } from './chunk-
|
|
1
|
+
import { FieldWrapper_default, clsx_default, Tab_default } from './chunk-HJKRGBDG.js';
|
|
2
2
|
import { useFormContext_default, useField_default, validateMaxLength } from './chunk-I64TXIE7.js';
|
|
3
3
|
import { PencilIcon_default, EyeIcon_default } from './chunk-HERLM47Z.js';
|
|
4
4
|
import { __commonJS, __export, __toESM } from './chunk-WPLOTFGW.js';
|
|
@@ -395,10 +395,9 @@ var TextField = ({
|
|
|
395
395
|
"input",
|
|
396
396
|
{
|
|
397
397
|
className: clsx_default(
|
|
398
|
-
"relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill
|
|
398
|
+
"relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill appearance-none rounded-md border-1 bg-surface-input px-4 py-2.5 text-sm text-text-primary border-border-default placeholder:text-text-muted focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",
|
|
399
399
|
{
|
|
400
|
-
"border-rose-700 placeholder:text-rose-500": !!field.error
|
|
401
|
-
"border-slate-300 placeholder-slate-400": !field.error
|
|
400
|
+
"border-rose-700 placeholder:text-rose-500": !!field.error
|
|
402
401
|
}
|
|
403
402
|
),
|
|
404
403
|
disabled: field.disabled,
|
|
@@ -6559,6 +6558,8 @@ function fromMarkdown(value, encoding, options) {
|
|
|
6559
6558
|
}
|
|
6560
6559
|
function compiler(options) {
|
|
6561
6560
|
const config = {
|
|
6561
|
+
afterExit: [],
|
|
6562
|
+
beforeEnter: [],
|
|
6562
6563
|
transforms: [],
|
|
6563
6564
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
6564
6565
|
enter: {
|
|
@@ -6662,7 +6663,8 @@ function compiler(options) {
|
|
|
6662
6663
|
function compile(events) {
|
|
6663
6664
|
let tree = {
|
|
6664
6665
|
type: "root",
|
|
6665
|
-
children: []
|
|
6666
|
+
children: [],
|
|
6667
|
+
position: void 0
|
|
6666
6668
|
};
|
|
6667
6669
|
const context = {
|
|
6668
6670
|
stack: [tree],
|
|
@@ -6675,24 +6677,40 @@ function compiler(options) {
|
|
|
6675
6677
|
data
|
|
6676
6678
|
};
|
|
6677
6679
|
const listStack = [];
|
|
6680
|
+
const prepared = [];
|
|
6678
6681
|
let index2 = -1;
|
|
6679
6682
|
while (++index2 < events.length) {
|
|
6683
|
+
prepared.push(events[index2]);
|
|
6680
6684
|
if (events[index2][1].type === "listOrdered" || events[index2][1].type === "listUnordered") {
|
|
6681
6685
|
if (events[index2][0] === "enter") {
|
|
6682
|
-
listStack.push(
|
|
6686
|
+
listStack.push(prepared.length - 1);
|
|
6683
6687
|
} else {
|
|
6684
6688
|
const tail = listStack.pop();
|
|
6685
|
-
|
|
6689
|
+
prepareList(prepared, tail);
|
|
6686
6690
|
}
|
|
6687
6691
|
}
|
|
6688
6692
|
}
|
|
6693
|
+
events = prepared;
|
|
6689
6694
|
index2 = -1;
|
|
6690
6695
|
while (++index2 < events.length) {
|
|
6691
6696
|
const handler = config[events[index2][0]];
|
|
6697
|
+
if (events[index2][0] === "enter" && config.beforeEnter.length > 0) {
|
|
6698
|
+
callListeners(config.beforeEnter, {
|
|
6699
|
+
...context,
|
|
6700
|
+
sliceSerialize: events[index2][2].sliceSerialize
|
|
6701
|
+
}, events[index2][1]);
|
|
6702
|
+
}
|
|
6692
6703
|
if (own2.call(handler, events[index2][1].type)) {
|
|
6693
|
-
handler[events[index2][1].type].call(
|
|
6704
|
+
handler[events[index2][1].type].call({
|
|
6705
|
+
...context,
|
|
6694
6706
|
sliceSerialize: events[index2][2].sliceSerialize
|
|
6695
|
-
},
|
|
6707
|
+
}, events[index2][1]);
|
|
6708
|
+
}
|
|
6709
|
+
if (events[index2][0] === "exit" && config.afterExit.length > 0) {
|
|
6710
|
+
callListeners(config.afterExit, {
|
|
6711
|
+
...context,
|
|
6712
|
+
sliceSerialize: events[index2][2].sliceSerialize
|
|
6713
|
+
}, events[index2][1]);
|
|
6696
6714
|
}
|
|
6697
6715
|
}
|
|
6698
6716
|
if (context.tokenStack.length > 0) {
|
|
@@ -6718,7 +6736,14 @@ function compiler(options) {
|
|
|
6718
6736
|
}
|
|
6719
6737
|
return tree;
|
|
6720
6738
|
}
|
|
6721
|
-
function
|
|
6739
|
+
function callListeners(listeners, context, token) {
|
|
6740
|
+
let index2 = -1;
|
|
6741
|
+
while (++index2 < listeners.length) {
|
|
6742
|
+
listeners[index2].call(context, token);
|
|
6743
|
+
}
|
|
6744
|
+
}
|
|
6745
|
+
function prepareList(events, start2) {
|
|
6746
|
+
const end = events.length - 1;
|
|
6722
6747
|
let index2 = start2 - 1;
|
|
6723
6748
|
let containerBalance = -1;
|
|
6724
6749
|
let listSpread = false;
|
|
@@ -6726,7 +6751,8 @@ function compiler(options) {
|
|
|
6726
6751
|
let lineIndex;
|
|
6727
6752
|
let firstBlankLineIndex;
|
|
6728
6753
|
let atMarker;
|
|
6729
|
-
|
|
6754
|
+
const insertions = [];
|
|
6755
|
+
while (++index2 <= end) {
|
|
6730
6756
|
const event = events[index2];
|
|
6731
6757
|
switch (event[1].type) {
|
|
6732
6758
|
case "listUnordered":
|
|
@@ -6782,9 +6808,10 @@ function compiler(options) {
|
|
|
6782
6808
|
listItem4._spread = true;
|
|
6783
6809
|
}
|
|
6784
6810
|
listItem4.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6811
|
+
insertions.push({
|
|
6812
|
+
at: lineIndex || index2,
|
|
6813
|
+
event: ["exit", listItem4, event[2]]
|
|
6814
|
+
});
|
|
6788
6815
|
}
|
|
6789
6816
|
if (event[1].type === "listItemPrefix") {
|
|
6790
6817
|
const item = {
|
|
@@ -6795,16 +6822,25 @@ function compiler(options) {
|
|
|
6795
6822
|
end: void 0
|
|
6796
6823
|
};
|
|
6797
6824
|
listItem4 = item;
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6825
|
+
insertions.push({
|
|
6826
|
+
at: index2,
|
|
6827
|
+
event: ["enter", item, event[2]]
|
|
6828
|
+
});
|
|
6801
6829
|
firstBlankLineIndex = void 0;
|
|
6802
6830
|
atMarker = true;
|
|
6803
6831
|
}
|
|
6804
6832
|
}
|
|
6805
6833
|
}
|
|
6834
|
+
const listEvents = events.splice(start2);
|
|
6835
|
+
let insertion = 0;
|
|
6836
|
+
index2 = -1;
|
|
6837
|
+
while (++index2 < listEvents.length) {
|
|
6838
|
+
while (insertion < insertions.length && insertions[insertion].at === start2 + index2) {
|
|
6839
|
+
events.push(insertions[insertion++].event);
|
|
6840
|
+
}
|
|
6841
|
+
events.push(listEvents[index2]);
|
|
6842
|
+
}
|
|
6806
6843
|
events[start2][1]._spread = listSpread;
|
|
6807
|
-
return length;
|
|
6808
6844
|
}
|
|
6809
6845
|
function opener(create2, and) {
|
|
6810
6846
|
return open;
|
|
@@ -6846,7 +6882,8 @@ function compiler(options) {
|
|
|
6846
6882
|
start: token.start,
|
|
6847
6883
|
end: token.end
|
|
6848
6884
|
}) + "): it\u2019s not open");
|
|
6849
|
-
}
|
|
6885
|
+
}
|
|
6886
|
+
if (open[0].type !== token.type) {
|
|
6850
6887
|
if (onExitError) {
|
|
6851
6888
|
onExitError.call(this, token, open[0]);
|
|
6852
6889
|
} else {
|
|
@@ -7082,7 +7119,8 @@ function compiler(options) {
|
|
|
7082
7119
|
function blockQuote2() {
|
|
7083
7120
|
return {
|
|
7084
7121
|
type: "blockquote",
|
|
7085
|
-
children: []
|
|
7122
|
+
children: [],
|
|
7123
|
+
position: void 0
|
|
7086
7124
|
};
|
|
7087
7125
|
}
|
|
7088
7126
|
function codeFlow() {
|
|
@@ -7090,13 +7128,15 @@ function compiler(options) {
|
|
|
7090
7128
|
type: "code",
|
|
7091
7129
|
lang: null,
|
|
7092
7130
|
meta: null,
|
|
7093
|
-
value: ""
|
|
7131
|
+
value: "",
|
|
7132
|
+
position: void 0
|
|
7094
7133
|
};
|
|
7095
7134
|
}
|
|
7096
7135
|
function codeText2() {
|
|
7097
7136
|
return {
|
|
7098
7137
|
type: "inlineCode",
|
|
7099
|
-
value: ""
|
|
7138
|
+
value: "",
|
|
7139
|
+
position: void 0
|
|
7100
7140
|
};
|
|
7101
7141
|
}
|
|
7102
7142
|
function definition3() {
|
|
@@ -7105,13 +7145,15 @@ function compiler(options) {
|
|
|
7105
7145
|
identifier: "",
|
|
7106
7146
|
label: null,
|
|
7107
7147
|
title: null,
|
|
7108
|
-
url: ""
|
|
7148
|
+
url: "",
|
|
7149
|
+
position: void 0
|
|
7109
7150
|
};
|
|
7110
7151
|
}
|
|
7111
7152
|
function emphasis3() {
|
|
7112
7153
|
return {
|
|
7113
7154
|
type: "emphasis",
|
|
7114
|
-
children: []
|
|
7155
|
+
children: [],
|
|
7156
|
+
position: void 0
|
|
7115
7157
|
};
|
|
7116
7158
|
}
|
|
7117
7159
|
function heading3() {
|
|
@@ -7119,18 +7161,21 @@ function compiler(options) {
|
|
|
7119
7161
|
type: "heading",
|
|
7120
7162
|
// @ts-expect-error `depth` will be set later.
|
|
7121
7163
|
depth: 0,
|
|
7122
|
-
children: []
|
|
7164
|
+
children: [],
|
|
7165
|
+
position: void 0
|
|
7123
7166
|
};
|
|
7124
7167
|
}
|
|
7125
7168
|
function hardBreak3() {
|
|
7126
7169
|
return {
|
|
7127
|
-
type: "break"
|
|
7170
|
+
type: "break",
|
|
7171
|
+
position: void 0
|
|
7128
7172
|
};
|
|
7129
7173
|
}
|
|
7130
7174
|
function html5() {
|
|
7131
7175
|
return {
|
|
7132
7176
|
type: "html",
|
|
7133
|
-
value: ""
|
|
7177
|
+
value: "",
|
|
7178
|
+
position: void 0
|
|
7134
7179
|
};
|
|
7135
7180
|
}
|
|
7136
7181
|
function image3() {
|
|
@@ -7138,7 +7183,8 @@ function compiler(options) {
|
|
|
7138
7183
|
type: "image",
|
|
7139
7184
|
title: null,
|
|
7140
7185
|
url: "",
|
|
7141
|
-
alt: null
|
|
7186
|
+
alt: null,
|
|
7187
|
+
position: void 0
|
|
7142
7188
|
};
|
|
7143
7189
|
}
|
|
7144
7190
|
function link3() {
|
|
@@ -7146,7 +7192,8 @@ function compiler(options) {
|
|
|
7146
7192
|
type: "link",
|
|
7147
7193
|
title: null,
|
|
7148
7194
|
url: "",
|
|
7149
|
-
children: []
|
|
7195
|
+
children: [],
|
|
7196
|
+
position: void 0
|
|
7150
7197
|
};
|
|
7151
7198
|
}
|
|
7152
7199
|
function list4(token) {
|
|
@@ -7155,7 +7202,8 @@ function compiler(options) {
|
|
|
7155
7202
|
ordered: token.type === "listOrdered",
|
|
7156
7203
|
start: null,
|
|
7157
7204
|
spread: token._spread,
|
|
7158
|
-
children: []
|
|
7205
|
+
children: [],
|
|
7206
|
+
position: void 0
|
|
7159
7207
|
};
|
|
7160
7208
|
}
|
|
7161
7209
|
function listItem3(token) {
|
|
@@ -7163,30 +7211,35 @@ function compiler(options) {
|
|
|
7163
7211
|
type: "listItem",
|
|
7164
7212
|
spread: token._spread,
|
|
7165
7213
|
checked: null,
|
|
7166
|
-
children: []
|
|
7214
|
+
children: [],
|
|
7215
|
+
position: void 0
|
|
7167
7216
|
};
|
|
7168
7217
|
}
|
|
7169
7218
|
function paragraph3() {
|
|
7170
7219
|
return {
|
|
7171
7220
|
type: "paragraph",
|
|
7172
|
-
children: []
|
|
7221
|
+
children: [],
|
|
7222
|
+
position: void 0
|
|
7173
7223
|
};
|
|
7174
7224
|
}
|
|
7175
7225
|
function strong3() {
|
|
7176
7226
|
return {
|
|
7177
7227
|
type: "strong",
|
|
7178
|
-
children: []
|
|
7228
|
+
children: [],
|
|
7229
|
+
position: void 0
|
|
7179
7230
|
};
|
|
7180
7231
|
}
|
|
7181
7232
|
function text10() {
|
|
7182
7233
|
return {
|
|
7183
7234
|
type: "text",
|
|
7184
|
-
value: ""
|
|
7235
|
+
value: "",
|
|
7236
|
+
position: void 0
|
|
7185
7237
|
};
|
|
7186
7238
|
}
|
|
7187
7239
|
function thematicBreak4() {
|
|
7188
7240
|
return {
|
|
7189
|
-
type: "thematicBreak"
|
|
7241
|
+
type: "thematicBreak",
|
|
7242
|
+
position: void 0
|
|
7190
7243
|
};
|
|
7191
7244
|
}
|
|
7192
7245
|
}
|
|
@@ -7227,6 +7280,14 @@ function extension(combined, extension2) {
|
|
|
7227
7280
|
}
|
|
7228
7281
|
break;
|
|
7229
7282
|
}
|
|
7283
|
+
case "afterExit":
|
|
7284
|
+
case "beforeEnter": {
|
|
7285
|
+
const right = extension2[key];
|
|
7286
|
+
if (right) {
|
|
7287
|
+
combined[key].push(right);
|
|
7288
|
+
}
|
|
7289
|
+
break;
|
|
7290
|
+
}
|
|
7230
7291
|
case "enter":
|
|
7231
7292
|
case "exit": {
|
|
7232
7293
|
const right = extension2[key];
|
|
@@ -7248,12 +7309,11 @@ function defaultOnError(left, right) {
|
|
|
7248
7309
|
start: right.start,
|
|
7249
7310
|
end: right.end
|
|
7250
7311
|
}) + ") is open");
|
|
7251
|
-
} else {
|
|
7252
|
-
throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
|
|
7253
|
-
start: right.start,
|
|
7254
|
-
end: right.end
|
|
7255
|
-
}) + ") is still open");
|
|
7256
7312
|
}
|
|
7313
|
+
throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
|
|
7314
|
+
start: right.start,
|
|
7315
|
+
end: right.end
|
|
7316
|
+
}) + ") is still open");
|
|
7257
7317
|
}
|
|
7258
7318
|
|
|
7259
7319
|
// ../node_modules/remark-parse/lib/index.js
|
|
@@ -19018,15 +19078,12 @@ function findAndReplace(tree, list4, options) {
|
|
|
19018
19078
|
find2.lastIndex = position4 + 1;
|
|
19019
19079
|
} else {
|
|
19020
19080
|
if (start2 !== position4) {
|
|
19021
|
-
|
|
19022
|
-
type: "text",
|
|
19023
|
-
value: node2.value.slice(start2, position4)
|
|
19024
|
-
});
|
|
19081
|
+
add({ type: "text", value: node2.value.slice(start2, position4) });
|
|
19025
19082
|
}
|
|
19026
19083
|
if (Array.isArray(value)) {
|
|
19027
|
-
|
|
19084
|
+
for (const child of value) add(child);
|
|
19028
19085
|
} else if (value) {
|
|
19029
|
-
|
|
19086
|
+
add(value);
|
|
19030
19087
|
}
|
|
19031
19088
|
start2 = position4 + match[0].length;
|
|
19032
19089
|
change = true;
|
|
@@ -19038,20 +19095,28 @@ function findAndReplace(tree, list4, options) {
|
|
|
19038
19095
|
}
|
|
19039
19096
|
if (change) {
|
|
19040
19097
|
if (start2 < node2.value.length) {
|
|
19041
|
-
|
|
19098
|
+
add({ type: "text", value: node2.value.slice(start2) });
|
|
19042
19099
|
}
|
|
19043
19100
|
parent.children.splice(index2, 1, ...nodes);
|
|
19044
19101
|
} else {
|
|
19045
19102
|
nodes = [node2];
|
|
19046
19103
|
}
|
|
19047
19104
|
return index2 + nodes.length;
|
|
19105
|
+
function add(child) {
|
|
19106
|
+
const previous3 = nodes[nodes.length - 1];
|
|
19107
|
+
if (previous3 && previous3.type === "text" && child.type === "text") {
|
|
19108
|
+
previous3.value += child.value;
|
|
19109
|
+
} else {
|
|
19110
|
+
nodes.push(child);
|
|
19111
|
+
}
|
|
19112
|
+
}
|
|
19048
19113
|
}
|
|
19049
19114
|
}
|
|
19050
19115
|
function toPairs(tupleOrList) {
|
|
19051
|
-
const result = [];
|
|
19052
19116
|
if (!Array.isArray(tupleOrList)) {
|
|
19053
19117
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
19054
19118
|
}
|
|
19119
|
+
const result = [];
|
|
19055
19120
|
const list4 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? tupleOrList : [tupleOrList];
|
|
19056
19121
|
let index2 = -1;
|
|
19057
19122
|
while (++index2 < list4.length) {
|
|
@@ -20327,8 +20392,14 @@ function peek2(_, _1, state) {
|
|
|
20327
20392
|
}
|
|
20328
20393
|
|
|
20329
20394
|
// ../node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
20330
|
-
function text7(node2,
|
|
20331
|
-
|
|
20395
|
+
function text7(node2, parent, state, info) {
|
|
20396
|
+
const siblings = parent ? parent.children : [];
|
|
20397
|
+
const index2 = siblings.indexOf(node2);
|
|
20398
|
+
return state.safe(node2.value, {
|
|
20399
|
+
...info,
|
|
20400
|
+
afterNode: siblings[index2 + 1],
|
|
20401
|
+
beforeNode: siblings[index2 - 1]
|
|
20402
|
+
});
|
|
20332
20403
|
}
|
|
20333
20404
|
|
|
20334
20405
|
// ../node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
@@ -59,7 +59,10 @@ var useShopInfo = () => {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
var useShopInfo_default = useShopInfo;
|
|
62
|
-
var AppContext = sharedContext(
|
|
62
|
+
var AppContext = sharedContext(
|
|
63
|
+
"AppContext",
|
|
64
|
+
createContext(void 0)
|
|
65
|
+
);
|
|
63
66
|
var AppContext_default = AppContext;
|
|
64
67
|
|
|
65
68
|
// src/modules/common/hooks/useApp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toDate, isValid, millisecondsInWeek, constructFrom, startOfDay, millisecondsInDay } from './chunk-I64TXIE7.js';
|
|
2
|
-
import { useShopInfo_default, AppContext_default } from './chunk-
|
|
2
|
+
import { useShopInfo_default, AppContext_default } from './chunk-BOMSMJF2.js';
|
|
3
3
|
import { useContext } from 'react';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { textColor,
|
|
1
|
+
import { textColor, badgeButtonColors, borderColor, bgColor } from './chunk-ZUOVKRKC.js';
|
|
2
2
|
import { FormContext_default, useField_default, validateRequiredTag, useFormContext_default } from './chunk-I64TXIE7.js';
|
|
3
3
|
import { QuestionMarkCircleIcon_default } from './chunk-HERLM47Z.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -55,7 +55,7 @@ var Badge = ({
|
|
|
55
55
|
"span",
|
|
56
56
|
{
|
|
57
57
|
className: clsx_default(
|
|
58
|
-
"inline-flex items-center bg-
|
|
58
|
+
"inline-flex items-center bg-surface-raised px-2.5 py-0.5",
|
|
59
59
|
{
|
|
60
60
|
"rounded-full": !square,
|
|
61
61
|
"rounded-md": square
|
|
@@ -78,7 +78,7 @@ var Badge = ({
|
|
|
78
78
|
id: "badge-x-button",
|
|
79
79
|
type: "button",
|
|
80
80
|
onClick,
|
|
81
|
-
className: "ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-
|
|
81
|
+
className: "ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-surface-raised focus:outline-hidden focus:bg-surface-raised",
|
|
82
82
|
children: /* @__PURE__ */ jsx(
|
|
83
83
|
"svg",
|
|
84
84
|
{
|
|
@@ -120,13 +120,7 @@ var Badge = ({
|
|
|
120
120
|
className: `ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${textColor(
|
|
121
121
|
normalizedColor,
|
|
122
122
|
400
|
|
123
|
-
)}
|
|
124
|
-
normalizedColor,
|
|
125
|
-
200
|
|
126
|
-
)} hover:text-${normalizedColor}-500 focus:outline-hidden focus:${bgColor(
|
|
127
|
-
normalizedColor,
|
|
128
|
-
500
|
|
129
|
-
)} focus:text-white`,
|
|
123
|
+
)} ${badgeButtonColors(normalizedColor)} focus:outline-hidden focus:text-white`,
|
|
130
124
|
children: /* @__PURE__ */ jsx(
|
|
131
125
|
"svg",
|
|
132
126
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clsx_default, SubmitButton_default } from './chunk-
|
|
1
|
+
import { clsx_default, SubmitButton_default } from './chunk-HJKRGBDG.js';
|
|
2
2
|
import { NoSymbolIcon_default } from './chunk-HERLM47Z.js';
|
|
3
3
|
import { sharedContext } from './chunk-J23QSWDL.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -244,9 +244,21 @@ var ImageWithFallback = ({ fallbackSrc = "", src, ...props }) => {
|
|
|
244
244
|
);
|
|
245
245
|
};
|
|
246
246
|
var ImageWithFallback_default = ImageWithFallback;
|
|
247
|
-
var FormWrapperContext = sharedContext(
|
|
247
|
+
var FormWrapperContext = sharedContext(
|
|
248
|
+
"FormWrapperContext",
|
|
249
|
+
createContext(false)
|
|
250
|
+
);
|
|
248
251
|
var FormWrapper = ({ children, className = "" }) => {
|
|
249
|
-
return /* @__PURE__ */ jsx(FormWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx("div", { className: "sm:max-w-full", children: /* @__PURE__ */ jsx(
|
|
252
|
+
return /* @__PURE__ */ jsx(FormWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx("div", { className: "sm:max-w-full", children: /* @__PURE__ */ jsx(
|
|
253
|
+
"div",
|
|
254
|
+
{
|
|
255
|
+
className: clsx_default(
|
|
256
|
+
"bg-surface rounded-md shadow-sm overflow-hidden",
|
|
257
|
+
className
|
|
258
|
+
),
|
|
259
|
+
children
|
|
260
|
+
}
|
|
261
|
+
) }) });
|
|
250
262
|
};
|
|
251
263
|
var FormWrapper_default = FormWrapper;
|
|
252
264
|
var SaveAndCancelButtons = ({
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useAddWork_default, GetWorkQuery } from './chunk-VYEXPG3M.js';
|
|
2
|
+
import { useState, useCallback } from 'react';
|
|
3
|
+
import { toast } from 'react-toastify';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { useApolloClient } from '@apollo/client/react';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
|
|
8
|
+
var useCSVExport = () => {
|
|
9
|
+
const [isExporting, setIsExporting] = useState(false);
|
|
10
|
+
const client = useApolloClient();
|
|
11
|
+
const router = useRouter();
|
|
12
|
+
const { addWork } = useAddWork_default();
|
|
13
|
+
const { formatMessage } = useIntl();
|
|
14
|
+
const getWorkStatus = useCallback(
|
|
15
|
+
async (workId) => {
|
|
16
|
+
const { data } = await client.query({
|
|
17
|
+
query: GetWorkQuery(),
|
|
18
|
+
variables: { workId },
|
|
19
|
+
fetchPolicy: "network-only"
|
|
20
|
+
});
|
|
21
|
+
return data?.work ?? null;
|
|
22
|
+
},
|
|
23
|
+
[client]
|
|
24
|
+
);
|
|
25
|
+
const exportCSV = useCallback(
|
|
26
|
+
async ({ type, pollInterval = 2e3, ...params }) => {
|
|
27
|
+
setIsExporting(true);
|
|
28
|
+
try {
|
|
29
|
+
const worker = await addWork({
|
|
30
|
+
type: "BULK_EXPORT" /* BulkExport */,
|
|
31
|
+
input: { type, ...params }
|
|
32
|
+
});
|
|
33
|
+
const workId = worker?.data?.addWork?._id;
|
|
34
|
+
if (!workId) throw new Error("Failed to create export work");
|
|
35
|
+
await new Promise((resolve, reject) => {
|
|
36
|
+
const interval = setInterval(async () => {
|
|
37
|
+
try {
|
|
38
|
+
const work = await getWorkStatus(workId);
|
|
39
|
+
if (!work) throw new Error("Work not found");
|
|
40
|
+
if (work.status === "SUCCESS" /* Success */ || work.status === "FAILED" /* Failed */) {
|
|
41
|
+
clearInterval(interval);
|
|
42
|
+
if (work.status === "SUCCESS" /* Success */ && work.success) {
|
|
43
|
+
router.push(`/exports?workId=${work._id}`);
|
|
44
|
+
resolve(work);
|
|
45
|
+
} else {
|
|
46
|
+
reject(work.error || new Error("Export failed"));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
} catch (err) {
|
|
50
|
+
clearInterval(interval);
|
|
51
|
+
reject(err);
|
|
52
|
+
}
|
|
53
|
+
}, pollInterval);
|
|
54
|
+
});
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.error("Export failed:", error);
|
|
57
|
+
toast.error(
|
|
58
|
+
formatMessage({
|
|
59
|
+
id: "export_failed",
|
|
60
|
+
defaultMessage: "Export failed. Please try again."
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
return null;
|
|
64
|
+
} finally {
|
|
65
|
+
setIsExporting(false);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[addWork, getWorkStatus, router, formatMessage]
|
|
69
|
+
);
|
|
70
|
+
return { isExporting, exportCSV };
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { useCSVExport };
|